public class Three {
    public static boolean three(int[] array){
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            if(array[i] % 2 != 0) {
                count++;
                if(count == 3) {
                    return true;
                }
            }else {
                count = 0;
            }
        }
        return false;

    }
    public static void main(String[] args) {
        int[] arr = {1,2,3,5,7};
        boolean ret = three(arr);
        System.out.println(ret);
    }
}
